package com.sample.transaction.atomikos.db2.service;


import com.sample.transaction.atomikos.db2.entity.User2;

import java.util.Optional;

public interface User2Service {

    Optional<User2> findById(int id);

    User2 updateUser(User2 user, boolean throwEx);

}
